<?php

/**
 *      [品牌空间] (C)2001-2010 Comsenz Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: ads.inc.php 4379 2010-09-09 03:00:50Z fanshengshuai $
 */


if(!defined('IN_ADMIN')) {
	exit('Acess Denied');
}

require_once B_ROOT . "source/class/adv/adv_core.php";

class adv_modulebanner extends Adv {

	var $version = '1.0';
	var $name = 'modulebanner_name';
	var $targets = array("index", "map");
	var $description = 'modulebanner_desc';
	var $imagesizes = array('720x40', '170x50');
	var $global_ad = false;

	function getSettings() {
		global $_G;
		$settings = array(
				'position' => array(
					'title' => 'modulebanner_position',
					'type' => 'mradio',
					'value' => array(
						array(1, 'modulebanner_position_1'),
						array(2, 'modulebanner_position_2'),
						array(3, 'modulebanner_position_3'),
						array(4, 'modulebanner_position_4'),
						array(5, 'modulebanner_position_5'),
						array(6, 'modulebanner_position_6')
						),
					'default' => 1,
					),
				);

		return $settings;
	}

	function setSettings(&$advnew, &$parameters) {
			parent::setSettings($advnew, $parameters);
		//$advnew[targets] = array("index", "map");
	}
}

?>
